package com.wx.tgp.socket.demo.thread;

import org.apache.log4j.Logger;

import javax.xml.bind.DatatypeConverter;

/**
 * Created by Administrator on 2016/8/26.
 */
public class CallbackDigestUserInterface {
    Logger log = Logger.getLogger(CallbackDigestUserInterface.class);

    public static void callbackDigest(byte[] digest,String name){
        StringBuffer result = new StringBuffer(name);
        result.append("：");
        result.append(DatatypeConverter.printHexBinary(digest));
        System.out.println(result);
    }

    public static void main(String args[]){
        String str = "d://清单.txt";
        CallbackDigest c = new CallbackDigest(str);
        Thread t  = new Thread(c);
        t.start();
    }
}
